/*
 * scaner.h
 * Lexical analyzer for uPL0c.
 *
 * Copyright 2024 dh33ex <dh33ex@riseup.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA or visit <http://www.gnu.org/licenses/>.
 *
 *
 */

#ifndef SCANER_H
#define SCANER_H

#define TOK_NULL         0
#define TOK_INTEGER      2
#define TOK_LSL          3
#define TOK_ASR          4
#define TOK_ROT          5
#define TOK_TIMES        6
#define TOK_DIV          7
#define TOK_AND          8
#define TOK_XOR          9
#define TOK_PLUS        10
#define TOK_MINUS       11
#define TOK_OR          12
#define TOK_EQL         13
#define TOK_NEQ         14
#define TOK_LEQ         15
#define TOK_LSS         16
#define TOK_GEQ         17
#define TOK_GTR         18
#define TOK_DOT         19
#define TOK_COMMA       20
#define TOK_COLON       21
#define TOK_RPAREN      22
#define TOK_THEN        24
#define TOK_DO          25
#define TOK_LPAREN      26
#define TOK_NOT         28
#define TOK_BECOMES     29
#define TOK_NUMBER      30
#define TOK_IDENT       31
#define TOK_SEMICOLON   32
#define TOK_END         33
#define TOK_ELSE        34
#define TOK_IF          35
#define TOK_WHILE       36
#define TOK_CONST       37
#define TOK_MEM         38
#define TOK_VAR         39
#define TOK_PROCEDURE   40
#define TOK_BEGIN       41
#define TOK_CALL        42
#define TOK_EOF         43

/* global functions */
void next_token(void);

#endif
